package com.eastfair.gateway.hystrix;

import com.eastfair.core.base.R;
import com.eastfair.gateway.api.BackListServiceFeign;
import com.eastfair.gateway.dto.BackListDTO;
import com.eastfair.gateway.entity.BackList;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * 用户API熔断
 *
 * @author zuihou
 * @date 2019/07/23
 */
@Component
public class BackListApiFallback implements BackListServiceFeign {


    @Override
    public R<BackList> executeAddBackList(BackListDTO backListDTO) {
        return R.timeout();
    }

    @Override
    public R<Boolean> verifyUserBackList(BackListDTO backListDTO) {
        return R.timeout();
    }
}
